<?php
$this->breadcrumbs = array(
    'Users' => array('index'),
    $model->user_id,
);
?>

<div class="box">
    <header>
        <h5><i class="icon icon-user"></i>View user # <?php echo "{$model->user_id} ({$model->display_name})" ?></h5>
    </header>
    <div class="body">

	<?php
	$this->widget('bootstrap.widgets.TbDetailView', array(
	    'data' => $model,
	    'attributes' => array(
		'user_id',
		//'username',
		'email',
		'display_name',
		array(
		    'name' => 'status',
		    'value' => $model->getStatusText()
		),
		array(
		    'name' => 'joined',
		    'value' => date('Y-m-d', $model->joined)
		),
		'gender',
		'address',
		'telephone',
		'mobile',
		array(
		    'name' => 'avatar',
		    'type' => 'raw',
		    'value' => CHtml::image($model->getAvatarUrl('thumb'))
		),
	    ),
	));
	?>

    </div>
</div>
